package GUI;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class TelaPrincipal extends Composite {
	
	public TelaPrincipal(Composite parent, int style) {
		super(parent, style);
	}

	public static void main(String[] args) {
		
		Display display = new Display();
		Shell shell = new Shell(display);
		
		new TelaPrincipal(shell, SWT.NULL);
		
		shell.setSize(300, 180);
		shell.open();
		
		while(!shell.isDisposed()){
			if(display.readAndDispatch()){
				display.sleep();
			}
		}
		
		display.dispose();
		
	}
	
}
